<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.lsms.dao.impl.*" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Administrator Modify Mail Content Page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="LSMS,ICSEE,MEMBER">
	
	<link rel="stylesheet" type="text/css" href="../css/author_layout.css">
	<link rel="stylesheet" type="text/css" href="../css/hyper_link_style.css">

	<script type="text/javascript">
		function check(){
			var invite_reviewer = document.mmc.invite_reviewer;
			if(invite_reviewer.value==""){
				alert("The mail content can not be null!");
				invite_reviewer.focus();
				return false;
			}
			
			var invite_member = document.mmc.invite_member;
			if(invite_member.value==""){
				alert("The mail content can not be null!");
				invite_member.focus();
				return false;
			}
			
			var chair_assign_paper = document.mmc.chair_assign_paper;
			if(chair_assign_paper.value==""){
				alert("The mail content can not be null!");
				chair_assign_paper.focus();
				return false;
			}
			
			var member_assign_paper = document.mmc.member_assign_paper;
			if(member_assign_paper.value==""){
				alert("The mail content can not be null!");
				member_assign_paper.focus();
				return false;
			}
			
			var to_pass_paper = document.mmc.to_pass_paper;
			if(to_pass_paper.value==""){
				alert("The mail content can not be null!");
				to_pass_paper.focus();
				return false;
			}
			
			var to_unpass_paper = document.mmc.to_unpass_paper;
			if(to_unpass_paper.value==""){
				alert("The mail content can not be null!");
				to_unpass_paper.focus();
				return false;
			}
			
			var to_all = document.mmc.to_all;
			if(to_all.value==""){
				alert("The mail content can not be null!");
				to_all.focus();
				return false;
			}
			
			return true;
		}
	
	</script>

  </head>
  
  <body>
	<div id="container">
		<div id="header" class="logo_image"></div>
		<div class="nav"></div>
		<div id="author_menu" class="border">
			<table border="0" width="100%"  >
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../index.jsp">Home</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="site_setting.jsp">Site Setting</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="release_new_note.jsp">Release new note</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="mail_notify.jsp">Mail Notify</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_mail_content.jsp">Modify Mail Content</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_info.jsp">Modify Information</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../logout">Log Out</a></td>
				</tr>
			</table>
		</div>
		
		<div id="content" class="bg_color border">
			<div style="margin:15px">
			<p><b>Modify Mail Content</b></p>
			<form action="../modify_mail_content" method="post" name="mmc" onSubmit="return check()">
				<table align='center' style="width:680px">
				<%
					DaoImpl impl = new DaoImpl();
				 %>
				<tr>
					<td>
					1.Invite reviewer 
					</td>
					<td>
					<%
						String invite_reviewer = impl.get_mail_content(1);
					 %>
					 <textarea name='invite_reviewer' rows="10" cols="80"><%=invite_reviewer%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td>
					2.Invite PC Member 
					</td>
					<td>
					<%
						String invite_member = impl.get_mail_content(2);
					 %>
					 <textarea name='invite_member' rows="10" cols="80"><%=invite_member%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td>
					3.Chair Assign Paper 
					</td>
					<td>
					<%
						String chair_assign_paper = impl.get_mail_content(3);
					 %>
					 <textarea name='chair_assign_paper' rows="10" cols="80"><%=chair_assign_paper%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td>
					4.Member Assign Paper 
					</td>
					<td>
					<%
						String member_assign_paper = impl.get_mail_content(4);
					 %>
					 <textarea name='member_assign_paper' rows="10" cols="80"><%=member_assign_paper%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td>
					5.Mail to pass paper 
					</td>
					<td>
					<%
						String to_pass_paper = impl.get_mail_content(5);
					 %>
					 <textarea name='to_pass_paper' rows="10" cols="80"><%=to_pass_paper%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td>
					6.Mail to unpass paper 
					</td>
					<td>
					<%
						String to_unpass_paper = impl.get_mail_content(6);
					 %>
					 <textarea name='to_unpass_paper' rows="10" cols="80"><%=to_unpass_paper%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td>
					7.Invite reviewer 
					</td>
					<td>
					<%
						String to_all = impl.get_mail_content(7);
					 %>
					 <textarea name='to_all' rows="10" cols="80"><%=to_all%></textarea>
					</td>
				</tr>
				<tr>
					<td colspan='2'><hr></td>
				</tr>
				<tr>
					<td colspan='2' style="text-align:center">
					<input type='submit' value="Submit">
					</td>
				</tr>
				</table>
			</form>
			</div>
		</div>
		
		<div class="nav"></div>
			
		<div id="footer" class="footer_color border">
			<p align="center"><b>&copy;2010 LSMS-All Rights Reserved.</b></p>
			<p align="center"> <b>Powered by Shu.</b></p>
		</div>
	</div>
  </body>
</html>
